package com.ruoyi.system.domain.aggregation;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聚合码对象 agg_qrcode
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
public class AggQrcode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long merchantId;

    /** 商家名称 */
    @Excel(name = "商家名称")
    private String merchantName;

    /** 二维码图片URL */
    @Excel(name = "二维码URL")
    private String qrCodeUrl;

    /** 二维码内容 */
    private String qrContent;

    /** 扫码次数 */
    @Excel(name = "扫码次数")
    private Integer scanCount;

    /** 最后扫码时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后扫码时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastScanTime;

    /** 状态 */
    @Excel(name = "状态", readConverterExp = "1=已生成,0=已禁用")
    private Integer status;

    /** 删除标志 */
    private Integer deleted;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getMerchantId()
    {
        return merchantId;
    }

    public void setMerchantId(Long merchantId)
    {
        this.merchantId = merchantId;
    }

    public String getMerchantName()
    {
        return merchantName;
    }

    public void setMerchantName(String merchantName)
    {
        this.merchantName = merchantName;
    }

    public String getQrCodeUrl()
    {
        return qrCodeUrl;
    }

    public void setQrCodeUrl(String qrCodeUrl)
    {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getQrContent()
    {
        return qrContent;
    }

    public void setQrContent(String qrContent)
    {
        this.qrContent = qrContent;
    }

    public Integer getScanCount()
    {
        return scanCount;
    }

    public void setScanCount(Integer scanCount)
    {
        this.scanCount = scanCount;
    }

    public Date getLastScanTime()
    {
        return lastScanTime;
    }

    public void setLastScanTime(Date lastScanTime)
    {
        this.lastScanTime = lastScanTime;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getDeleted()
    {
        return deleted;
    }

    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }
}

